package com.sdut.material.controller;


import com.sdut.material.service.IEvaluateService;
import com.sdut.material.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
@Controller
@RequestMapping("/evaluate")
public class EvaluateController {
    @Autowired
    private IEvaluateService evaluateService;
    @RequestMapping("/selectAndEvaluate")
    @ResponseBody
    public JSONResult selectAndEvaluate() {
        int materialId = 1;
        JSONResult jsonResult = evaluateService.selectAndEvaluate(materialId);
        return jsonResult;
    }
}

